/* 发布博客页面样式 */

/* 编辑器容器样式 */
#editor-container {
    border: 1px solid #e2e8f0;
    z-index: 100;
    min-height: 400px;
    border-radius: 0 0 8px 8px;
    background-color: white;
}

#toolbar-container {
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 8px 8px 0 0;
    padding: 8px;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.editor-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.editor-wrapper:focus-within {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.required-field::after {
    content: "*";
    color: #e53e3e;
    margin-left: 4px;
}

/* 发布提示样式 */
.blog-publishing-tips {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-publishing-tips h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #667eea;
    font-weight: 600;
}

.blog-publishing-tips ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.blog-publishing-tips li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* 表单元素增强 */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* 按钮样式增强 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* 加载动画 */
.loader {
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #667eea;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功/错误消息 */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}